package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 指标信息历史-实体
 * @author zfsn
 * @date 2023-4-4
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "指标信息历史", description = "")
@TableName("conf_alarm_indicators_his")
public class ConfAlarmIndicatorsHis extends BasePage<ConfAlarmIndicatorsHis> {

	/**
	 *
	 */
	@ApiModelProperty(value = "指标编号", notes = "")
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 1-基础告警2-统计告警3-访问量基线告警
	 */
	@ApiModelProperty(value = "指标类型", notes = "1-基础告警2-统计告警3-访问量基线告警")
	private Integer type;

	/**
	 *
	 */
	@ApiModelProperty(value = "指标名称", notes = "")
	private String name;

	/**
	 * 当type=1时必填
	 */
	@ApiModelProperty(value = "指标编码", notes = "当type=1时必填")
	private Integer code;

	/**
	 * 1代表数字类型，2代表字符类型
	 */
	@ApiModelProperty(value = "指标值类型", notes = "1代表数字类型，2代表字符类型")
	private String valueType;

	/**
	 *
	 */
	@ApiModelProperty(value = "指标单位", notes = "")
	private Integer unit;

	/**
	 * 当type=2时必填
	 */
	@ApiModelProperty(value = "指标对象", notes = "当type=2时必填")
	private Integer objId;

	/**
	 * 当type=2时必填
	 */
	@ApiModelProperty(value = "表达式", notes = "当type=2时必填")
	private String expression;


	/**
	 *
	 */
	@ApiModelProperty(value = "指标说明", notes = "")
	private String description;


	/**
	 *
	 */
	@ApiModelProperty(value = "创建时间", notes = "")
	private LocalDateTime createTime;


}